<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8"> 
    <title>编辑列表</title>
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">   
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="<%=basePath%>js/bootstrap-3.3.7-dist/css/bootstrap.min.css">
	<link rel="stylesheet" href="<%=basePath%>css/init.css">
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
	 <div class="col-md-8 col-sm-offset-2 text-center">
	 	<%@include file="/WEB-INF/jsp/public/token.jsp" %>
	  	<form class="navbar-form navbar-center" role="search" id="searchForm" method="post" action="<%=basePath%>sign/editList">
	  	  <div class="form-group">
		    <input type="text" class="form-control" id="jobNumber" name="jobNumber" value="${sign.jobNumber}" placeholder="编号">
		  </div>
		  <div class="form-group">
		    <input type="text" class="form-control" id="name" name="name" value="${sign.name}" placeholder="姓名">
		  </div>
		  <button type="button" id="searchBtn" class="btn btn-default">搜索</button>
		  <button type="button" id="clearBtn" class="btn btn-default">清空</button>
		</form>
	</div>
	<div class="text-center init-login">
		 <a href="<%=basePath%>sign/list" class="btn btn-primary" role="button"><span class="glyphicon glyphicon-home" aria-hidden="true">返回首页</a>
	</div>
</nav>
<div class="container">
	<div class="container-fluid">
		<div class="table-responsive">
		<table class="table table-hover">
		  <thead>
		      <tr>
		         <th>编号</th>
		         <th>姓名</th>
		         <th>操作</th>
		      </tr>
		   </thead>
		    <tbody>
		   </tbody>
		</table>
		</div>
	</div>
</div>
<script src="<%=basePath%>js/jquery-2.1.1/jquery.min.js"></script>
<script src="<%=basePath%>js/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script src="<%=basePath%>js/web/sgin/edit/metaData.js"></script>
<script src="<%=basePath%>js/web/sgin/edit/index.js"></script>
<script type="text/javascript">
var jsonData='${dataJson}';
var selectData='${selectJson}';
MetaData.init('sginList',jsonData,'.table tbody',selectData,1);

$(function(){
	 var pageindex = 1;
	//滚动加载数据监听
	 $(window).scroll(function () {
	       var scrollTop = $(this).scrollTop();
	       var scrollHeight = $(document).height();
	       var windowHeight = $(this).height();
	       if (scrollTop + windowHeight == scrollHeight) {
	    	   pageindex++;
	    	   MetaData.init('sginList',jsonData,'.table tbody',selectData,pageindex);
	       }
	 });
});
</script>
</body>
</html>
